/**
 *
 */
package messaage;

import forum.Forum;

import java.util.List;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

/**
 * @author navea
 * 
 */

public class GotListOfForumsMsg extends Message {

	private List<Forum> listOfforums;

	public GotListOfForumsMsg(List<Forum> forums) {
		this.listOfforums = forums;
		this.type = "GotListOfForumsMsg";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see messaage.Message#toString()
	 */
	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";

		return xml;
	}

	public List<Forum> getListOfForums() {
		return this.listOfforums;
	}

}
